#ifndef __SSU_LOG_H__

#define __SSU_LOG_H__

#include <stdio.h>
/* Write Log with size */
void ssu_log_write(FILE * fp, unsigned char *logMsg, int size)
{
	int *pSize = &size;
	fwrite(pSize,4,1,fp);
	fwrite(logMsg,1,size,fp);
}

size_t ssu_log_read(FILE * fp, unsigned char *logMsg)
{
	int logSize = 0;
	fread(&logSize, 4, 1, fp);
	fread(logMsg, 1, logSize, fp);
	return logSize;
}


#endif // __SSU_LOG_H__
